<div class="students form">
<?php echo $this->Form->create('Student');?>
	<fieldset>
 		<legend><?php __('Student Beggin'); ?></legend>
	<?php
		echo $this->Form->input('cpf');
		echo $this->Form->input('name', array('value'=>$this->Session->Read('user.name'), 'label'=>__("name", true)));
		echo $this->Form->input('rg');
		echo $this->Form->input('curso');
		echo $this->Form->input('entrada');
		echo $this->Form->input('endereco', array('type' => 'text'));
		echo $this->Form->input('bairro');
		echo $this->Form->input('cidade');
		echo $this->Form->input('complemento');
		echo $this->Form->input('cep');
		echo $this->Form->input('email', array('value'=>$this->Session->Read('user.email'), 'label'=>__("name", true)));
	?>
	</fieldset>
<?php echo $this->Form->end(__('Submit', true));?>
</div>
<div class="actions">
	<h3><?php __('Actions'); ?></h3>
	<ul>
		<?php if($this->Session->Read('user.level') == '1'){?>
		<li><?php echo $this->Html->link(__('List Students', true), array('action' => 'index'));?></li>
		<?php }?>
		<li><?php echo $this->Html->link(__('Logout', true), array('controller'=>'users', 'action' => 'logout'));?></li>
	</ul>
</div>